<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<script type="text/javascript" src="<%=path%>/projectjs/regioninfo.js" ></script>
<html>
  <head>
    <title>编辑用户</title>
  </head>
  <body>
	<div class="pageContent">
		<form method="post" action="<%=path %>/registerUser/saveRegisterUser.action" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
			<div class="pageFormContent" layoutH="56">
				<p>
					<label>登录名：</label>
					<input name="registerUserVO.loginId" value="<s:property value="registerUserVO.loginId" />" class="required mobile" type="text" size="30" alt="请输入登录名"/>
				</p>
				<p>
					<label>密码：</label>
					<input name="registerUserVO.password" value="<s:property value="registerUserVO.password" />" type="text" size="30" alt="如不填则为初始密码123456"/>
				</p>
				<p>
					<label>名字：</label>
					<input name="registerUserVO.userName" value="<s:property value="registerUserVO.userName" />" class="required" type="text" size="30" alt="请输入名字"/>
				</p>
				<p>
					<label>联系电话：</label>
					<input name="registerUserVO.phone" value="<s:property value="registerUserVO.phone" />" class="phone" type="text" size="30" alt="请输入联系电话"/>
				</p>
				<p>
					<label>联系邮件：</label>
					<input name="registerUserVO.email" value="<s:property value="registerUserVO.email" />" class="email" type="text" size="30" alt="请输入联系邮件"/>
				</p>
				<p>
					<label>用户状态：</label>
					<s:select name="registerUserVO.status" list="%{#{0:'有效',1:'失效',2:'暂停'}}" listKey="key" listValue="value"></s:select>
				</p>
				<p>
					<label>所属省份：</label>
					<select name="registerUserVO.province.regionId" id="registerUserAdd_province_id" onchange="getAllCity('regioninfo_registerUserAdd')" class="required">
						<option value="-1">请选择</option>
              		</select>
				</p>
				<p>
					<label>所属市级：</label>
					<select name="registerUserVO.city.regionId" id="registerUserAdd_city_id" onchange="getAllDistrict('regioninfo_registerUserAdd')" class="required">
						<option value="-1">请选择</option>
              		</select>
				</p>
				<p>
					<label>所属城区：</label>
					<select name="registerUserVO.district.regionId" id="registerUserAdd_district_id" class="required">
						<option value="-1">请选择</option>
              		</select>
				</p>
			</div>
			<div class="formBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
					<li>
						<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
					</li>
				</ul>
			</div>
		</form>
	</div>
  </body>
  <script type="text/javascript">
	//getAllProvince("${pageContext.request.contextPath}","registerUser_province_id","registerUser_db_province_id","registerUser_city_id","registerUser_db_city_id","registerUser_district_id","registerUser_db_district_id");
	var regioninfo_registerUserAdd=new RegionInfo("${pageContext.request.contextPath}","registerUserAdd_province_id","registerUserAdd_db_province_id","registerUserAdd_city_id","registerUserAdd_db_city_id","registerUserAdd_district_id","registerUserAdd_db_district_id","regioninfo_registerUserAdd");
</script>
</html>